public class AccessModel extends Object implements XMLMarshallable
Java class represents an access in master data that grants a timed license to an end customer of a service provider to
access and use its digital services; In return for this service usage, the access identifies
a charge that must be computed and debited for this service consumption. This fee is part of a commercial agreement (subscription, provider contract).
The access establishes a business relationship between:
Important Note
An access has a particular lifecycle. The technical key may be reassigned to another commercial agreement. See the Version and Chronology section.
An access is an association between technical information related to the usage of a digital service by an end customer and business information for charging this consumption.
charge activations (*)
for this user (end customer).
Example of user service ID and service ID: A phone number in the phone service, or an e-mail address in a messaging service
Notes (*)
accessible charge.
The business agreement information includes only accessible charges.
owner. In this case, the access can only include accessible charges on
subscriptions and provider contracts (see charging contracts related to a
subscriber account whose service provider
is the same as the owner of the access.
accessible charge represents a charge activation linked by the access.
If a linked activation charge is removed, the corresponding accessible charge is replaced by the previous accessible charge in the chronology. If there is no previous accessible charge, the deleted accessible charge is replaced by the following accessible charge. If the deleted accessible charge was alone, the access is removed.
Note
Since release 3.0 of SAP Convergent Charging, accesses are automatically created during the provisioning of provider contracts. You cannot customize this creation. Make sure you do not corrupt the accesses master data stored in SAP CC when your project implementation mixes subscriptions and provider contracts that shared the same accesses.
AccessSearchFilterModel,
CreateAccessOpThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="access">
<xs:complexType>
<xs:sequence>
<xs:element ref="accessibleChargeChronology" minOccurs="0" maxOccurs="1"/>
<xs:element ref="accessibleCharge" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="service" type="xs:string" use="required"/> <!-- means Service ID -->
<xs:attribute name="user" type="xs:string" use="required"/> <!-- means User Service ID -->
<xs:attribute name="owner" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="accessibleChargeChronology">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The XML tag name of the data model: "access"
|
| Constructor and Description |
|---|
AccessModel()
Constructs an empty access.
|
AccessModel(String serviceId,
String userServiceId)
Constructs an access with a service identifier and a user service identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
AccessibleChargeModel |
getAccessibleCharge()
Gets the accessible charge for modification.
|
ChronologyModel |
getAccessibleChargeChronology()
Gets the accessible charge chronology of the access.
|
String |
getOwner()
Gets the owner of the access.
|
String |
getServiceId()
Gets the service identifier of the access.
|
String |
getUserServiceId()
Gets the user service identifier of the access.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAccessibleCharge(AccessibleChargeModel accessibleCharge)
Sets the accessible charge for modification.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setOwner(String owner)
Sets the owner of the access.
|
void |
setServiceId(String serviceId)
Sets the service identifier of the access.
|
void |
setUserServiceId(String userServiceId)
Sets the user service identifier of the access.
|
public static final String NAME
public String getServiceId()
public void setServiceId(String serviceId)
serviceId - The service identifier of the accesspublic String getUserServiceId()
public void setUserServiceId(String userServiceId)
userServiceId - The user service identifier of the accesspublic String getOwner()
public void setOwner(String owner)
owner - The owner of the accesspublic ChronologyModel getAccessibleChargeChronology()
public AccessibleChargeModel getAccessibleCharge()
public void setAccessibleCharge(AccessibleChargeModel accessibleCharge)
accessibleCharge - The accessible charge for modificationpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into